from tkinter import messagebox
import requests


token = 'xx' # 虾推啥token
api = 'yy' # flomo api

def send_message(content):
    flomo_data = {
        'content': "{}".format(content)
    }

    wx_data = {
        'text': '关注',
        'desp':flomo_data['content']
    }

    requests.post(api, data=flomo_data)
    requests.post('http://wx.xtuis.cn/{token}.send'.format(token=token), data=wx_data)


if __name__ == '__main__':
    # send_message('#测试 来自远方的消息')
    send_message('#测试 来自BibiBili的测试......')
    messagebox.showinfo('信息', '...完成任务...')
    print("---Finished---")
